package com.supkong.factory.function;

/**
 * @author Kong
 * @date 2018/09/25
 * describe:
 */
public class FunctionFactoryTest {
    public static void main(String[] args) {
        //多态，获得水果方法工厂
        FunctionFruitFactory functionFruitFactory = new BananaFactory();
        //输出
        System.out.println(functionFruitFactory.getFruit().getName());
    }
}
